package fr.greta.centre.metier;

import java.sql.Timestamp;

public class Audit {
	private int idAudit;
	private Candidat candidat;
	private int idPromotion;
	private Etat ancienEtat;
	private Etat nouvelEtat;
	private Timestamp dateEvenement;
	private String typeEvenement;
	
	
	public Audit(int idAudit, Candidat candidat, int idPromotion,
			Etat ancienEtat, Etat nouvelEtat, Timestamp dateEvenement,
			String typeEvenement) {
		super();
		this.idAudit = idAudit;
		this.candidat = candidat;
		this.idPromotion = idPromotion;
		this.ancienEtat = ancienEtat;
		this.nouvelEtat = nouvelEtat;
		this.dateEvenement = dateEvenement;
		this.typeEvenement = typeEvenement;
	}
	
	public Audit() {
		
	}

	
	public int getIdAudit() {
		return idAudit;
	}

	public void setIdAudit(int idAudit) {
		this.idAudit = idAudit;
	}

	public Candidat getCandidat() {
		return candidat;
	}

	public void setCandidat(Candidat candidat) {
		this.candidat = candidat;
	}

	public int getIdPromotion() {
		return idPromotion;
	}

	public void setIdPromotion(int idPromotion) {
		this.idPromotion = idPromotion;
	}

	public Etat getAncienEtat() {
		return ancienEtat;
	}

	public void setAncienEtat(Etat ancienEtat) {
		this.ancienEtat = ancienEtat;
	}

	public Etat getNouvelEtat() {
		return nouvelEtat;
	}

	public void setNouvelEtat(Etat nouvelEtat) {
		this.nouvelEtat = nouvelEtat;
	}

	
	public Timestamp getDateEvenement() {
		return dateEvenement;
	}

	public void setDateEvenement(Timestamp dateEvenement) {
		
		this.dateEvenement = dateEvenement;
	}

	public String getTypeEvenement() {
		return typeEvenement;
	}

	public void setTypeEvenement(String typeEvenement) {
		this.typeEvenement = typeEvenement;
	}

	@Override
	public String toString() {
		return "Audit [idAudit=" + idAudit + ", candidat=" + candidat
				+ ", idPromotion=" + idPromotion + ", ancienEtat=" + ancienEtat
				+ ", nouvelEtat=" + nouvelEtat + ", dateEvenement="
				+ dateEvenement + ", typeEvenement=" + typeEvenement + "]";
	}

}
